let outboundOption = {
  name: "Outbound",
  detailLabel: "查看详情",
  detailInnerLabel: "备料详情",
  isNeedPagination: true,
  isNeedInnerPagination: false,
  isShowPopup: false,
  detailList: [
    {
      type: "text",
      label: "基础信息",
      list: [
        {
          width: 33.3,
          text: "杂项出库单",
          id: "billCode",
        },
        {
          width: 33.3,
          text: "审核状态",
          id: "auditStateName",
        },
        {
          width: 33.3,
          text: "单据状态",
          id: "stateName",
        },
        {
          width: 33.3,
          text: "领料人",
          id: "useUserName",
        },
        {
          width: 33.3,
          text: "审核人员",
          id: "confirmUserName",
        },
        {
          width: 33.3,
          text: "审核时间",
          id: "confirmTime",
        },
        {
          width: 100,
          text: "表头备注",
          id: "remark",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      label: "杂项出库明细",
      slotBottom: 32,
    },
  ],
  detailData: {},
  detailSearchParams: {
    current: 1,
    size: 10,
  },
  detailTotal: 0,
  detailTableColumn: [
    {
      type: "text",
      label: "物料料号",
      value: "materialCode",
    },
    {
      type: "text",
      label: "物料名称",
      value: "materialName",
    },
    {
      type: "text",
      label: "物料规格",
      value: "materialSpec",
    },
    {
      type: "text",
      label: "仓库",
      value: "sourceWarehouseName",
    },
    {
      type: "text",
      label: "项目",
      value: "project",
    },
    {
      type: "text",
      label: "数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
    {
      type: "text",
      label: "备注",
      value: "remark",
    },
    {
      type: "option",
      label: "操作",
      fixed: "right",
      showBtnList: [
        {
          label: "查看",
          option: "viewDeatil",
        },
      ],
    },
  ],
  detailTableData: [],
  //明细相关操作
  isShowInnerPopup: false,
  detailInnerList: [
    {
      type: "text",
      label: "基础信息",
      list: [
        {
          width: 33.33,
          text: "物料料号",
          id: "materialCode",
        },
        {
          width: 33.33,
          text: "备料数量",
          id: "num",
        },
        {
          width: 33.33,
          text: "物料名称",
          id: "materialName",
        },
        {
          width: 33.33,
          text: "仓库",
          id: "sourceWarehouseName",
        },
        {
          width: 33.33,
          text: "规格型号",
          id: "materialSpec",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      label: "物料标签",
    },
  ],
  detailInnerData: {},
  innerSearchParams: {
    current: 1,
    size: 10,
  },
  innerTotal: 0,
  innerTableColumn: [
    {
      type: "text",
      label: "物料标签",
      value: "barcode",
    },
    {
      type: "text",
      label: "数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
  ],
  innerTableData: [],
};

let pickingOption = {
  name: "Picking",
  detailLabel: "查看领料",
  detailInnerLabel: "查看领料",
  isNeedPagination: false,
  isNeedInnerPagination: false,
  isShowPopup: false,
  detailList: [
    {
      type: "text",
      label: "基础信息",
      list: [
        {
          width: 33.33,
          text: "领料单号",
          id: "billCode",
        },
        {
          width: 33.33,
          text: "工单单号",
          id: "workOrderCode",
        },
        {
          width: 33.33,
          text: "领料车间",
          id: "destProdOrgName",
        },
        {
          width: 33.33,
          text: "创建人",
          id: "createUserName",
        },
        {
          width: 33.33,
          text: "创建时间",
          id: "createTime",
        },
        {
          width: 33.33,
          text: "审核状态",
          id: "auditStateName",
        },
        {
          width: 33.33,
          text: "单据状态",
          id: "stateName",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      slotBottom: 32,
      // label: "操作信息",
    },
  ],
  detailData: {},
  detailSearchParams: {
    current: 1,
    size: 10,
  },
  detailTotal: 0,
  detailTableColumn: [
    {
      type: "text",
      label: "原料料号",
      value: "materialCode",
    },
    {
      type: "text",
      label: "物料名称",
      value: "materialName",
    },
    {
      type: "text",
      label: "物料规格",
      value: "materialSpec",
    },
    {
      type: "text",
      label: "仓库名称",
      value: "warehouseName",
    },
    {
      type: "text",
      label: "领用数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "领用重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
    {
      type: "text",
      label: "备注",
      value: "remark",
    },
    {
      type: "option",
      label: "操作",
      fixed: "right",
      showBtnList: [
        {
          label: "查看",
          option: "viewDeatil",
        },
      ],
    },
  ],
  detailTableData: [],
  //明细相关操作
  isShowInnerPopup: false,
  detailInnerList: [
    {
      type: "text",
      label: "备料信息",
      list: [
        {
          width: 33.33,
          text: "原料料号",
          id: "materialCode",
        },
        {
          width: 33.33,
          text: "物料名称",
          id: "materialName",
        },
        {
          width: 33.33,
          text: "物料规格",
          id: "materialSpec",
        },
        {
          width: 33.33,
          text: "仓库名称",
          id: "sourceWarehouseName",
        },
        {
          width: 33.33,
          text: "领用数量",
          id: "num",
        },
        {
          width: 33.33,
          text: "数量单位",
          id: "newNumUnit",
        },
        {
          width: 33.33,
          text: "领用重量",
          id: "weight",
        },
        {
          width: 33.33,
          text: "重量单位",
          id: "newWeightUnit",
        },
        {
          width: 33.33,
          text: "备料人员",
          id: "readyUserName",
        },
        {
          width: 33.33,
          text: "备料时间",
          id: "readyTime",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      // label: "操作信息",
      slotBottom: 32,
    },
  ],
  detailInnerData: {},
  innerSearchParams: {
    current: 1,
    size: 10,
  },
  innerTotal: 0,
  innerTableColumn: [
    {
      type: "text",
      label: "物料标签",
      value: "barcode",
    },
    {
      type: "text",
      label: "物料数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "物料重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
  ],
  innerTableData: [],
};

let sendOption = {
  name: "Send",
  detailLabel: "成品发货",
  detailInnerLabel: "查看详情",
  detailInnerDeatilLabel: "查看详情",
  isNeedPagination: false,
  isNeedInnerPagination: true,
  isShowPopup: false,
  detailList: [
    {
      type: "text",
      label: "基础信息",
      list: [
        {
          width: 33.33,
          text: "成品发货单",
          id: "billCode",
        },
        {
          width: 33.33,
          text: "审核状态",
          id: "auditStateName",
        },
        {
          width: 33.33,
          text: "单据状态",
          id: "stateName",
        },
        {
          width: 33.33,
          text: "客户名称",
          id: "customerName",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      label: "出货信息",
      slotBottom: 32,
    },
  ],
  detailData: {},
  detailSearchParams: {
    current: 1,
    size: 10,
  },
  detailTotal: 0,
  detailTableColumn: [
    {
      type: "text",
      label: "销售订单号",
      value: "saleOrderNo",
    },
    {
      type: "text",
      label: "销售订单行",
      value: "saleOrderLine",
    },
    {
      type: "text",
      label: "成品名称",
      value: "materialName",
    },
    {
      type: "text",
      label: "成品料号",
      value: "materialCode",
    },
    {
      type: "text",
      label: "规格型号",
      value: "materialSpec",
    },
    {
      type: "text",
      label: "数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
    {
      type: "text",
      label: "备注",
      value: "remark",
    },
    {
      type: "option",
      label: "操作",
      fixed: "right",
      showBtnList: [
        {
          label: "查看",
          option: "viewDeatil",
        },
      ],
    },
  ],
  detailTableData: [],
  //明细相关操作
  isShowInnerPopup: false,
  detailInnerList: [
    {
      type: "text",
      label: "基础信息",
      list: [
        {
          width: 33.33,
          text: "成品料号",
          id: "materialCode",
        },
        {
          width: 33.33,
          text: "物料名称",
          id: "materialName",
        },
        {
          width: 33.33,
          text: "物料规格",
          id: "materialSpec",
        },
        {
          width: 33.33,
          text: "出库数量",
          id: "num",
        },
        {
          width: 33.33,
          text: "数量单位",
          id: "newNumUnit",
        },
        {
          width: 33.33,
          text: "出库重量",
          id: "weight",
        },
        {
          width: 33.33,
          text: "重量单位",
          id: "newWeightUnit",
        },
      ],
    },
    {
      type: "slot",
      slotName: "bomTable",
      label: "标签明细",
      slotBottom: 32,
    },
  ],
  detailInnerData: {},
  innerSearchParams: {
    current: 1,
    size: 10,
  },
  innerTotal: 0,
  innerTableColumn: [
    {
      type: "text",
      label: "包装标签",
      value: "barcode",
    },
    {
      type: "text",
      label: "包装规格",
      value: "packageSpec",
    },
    {
      type: "text",
      label: "合计包装数量",
      value: "num",
    },
    {
      type: "text",
      label: "计量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "合计包装重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
    {
      type: "text",
      label: "包装人员",
      value: "packageUserName",
    },
    {
      type: "text",
      label: "包装时间",
      value: "packageTime",
    },
    {
      type: "option",
      label: "操作",
      fixed: "right",
      showBtnList: [
        {
          label: "查看",
          option: "view",
        },
      ],
    },
  ],
  innerTableData: [],
  //明细相关操作
  isShowInnerDetailPopup: false,
  detailInnerDetailList: [
    {
      type: "slot",
      slotName: "bomTable",
      label: "标签明细",
      slotBottom: 32,
    },
  ],
  detailInnerDetailData: {},
  innerDetailSearchParams: {
    current: 1,
    size: 10,
  },
  innerDetailTotal: 0,
  innerDetailTableColumn: [
    {
      type: "text",
      label: "容器编码",
      value: "containerCode",
    },
    {
      type: "text",
      label: "数量",
      value: "num",
    },
    {
      type: "text",
      label: "数量单位",
      value: "newNumUnit",
    },
    {
      type: "text",
      label: "重量",
      value: "weight",
    },
    {
      type: "text",
      label: "重量单位",
      value: "newWeightUnit",
    },
  ],
  innerDetailTableData: [],
};
export function getObject(type) {
  switch (type) {
    case "ZC":
      return outboundOption;
    case "SL":
      return pickingOption;
    case "CF":
      return sendOption;
  }
}
